// 这里写的都是根getters
const getters = {
  // 通过根getters建立对子模块state的快捷访问
  sidebar: (state) => state.app.sidebar,
  device: (state) => state.app.device,
  token: (state) => state.user.token,
  useId: (state) => state.user.userInfo.userId,
  username: (state) => state.user.userInfo.username,
  staffPhoto: (state) => state.user.userInfo.staffPhoto,
  companyName: (state) => state.user.userInfo.companyName,
  departmentName: (state) => state.user.userInfo.departmentName

}
export default getters

// mapGetters(['sidebar'])
// 读取到了 app模块state里面的sidebar
// mapGetters(['device'])
// 读取到了 app模块state里面的device
